package com.huike.review.service;

import com.huike.review.pojo.Review;
import com.huike.review.vo.MybatisReviewVO;

import java.util.List;

/**
 * mybatis复习接口层
 */
public interface ReviewService {

    /**
     * create by: pp
     * description: get请求添加数据
     * create time: 2023/2/23 20:37
     * 
      * @Param: review
     * @return null
     */
    void saveData(Review review);

/**
 * create by: pp
 * description: post请求添加数据
 * create time: 2023/2/23 20:38
 * 
  * @Param: review
 * @return null
 */
    void add(Review review);
/**
 * create by: pp
 * description: post请求更新数据
 * create time: 2023/2/23 20:41
 *
  * @Param: review
 * @return null
 */
    void updated(Review review);
/**
 * create by: pp
 * description: delete请求删除数据
 * create time: 2023/2/23 20:50
 *
  * @Param: id
 * @return null
 */
    void removeById(Long id);

    Review getById(Long id);

    List<MybatisReviewVO> getDataByPage(Integer page, Integer pageSize);
}
